﻿@model List<WangMi.Model.SubMenu>
@{string defaultActionName = string.Empty;}
<table>
    @foreach (var item in Model)
    {
        var url = "../" + item.ControllerName + "/" + item.ActionName;
        <tr>
            <td>
                @Ajax.ActionLink(item.SubMenuName, item.ActionName, item.ControllerName, new { }, new AjaxOptions { UpdateTargetId = "rightContent" })
            </td>
        </tr>
    }
</table>
@using (Ajax.BeginForm(MenuControllerConstants.SubMenuContent, MenuControllerConstants.SubMenuController, new { actionName = Model.First().ActionName, controllerName = Model.First().ControllerName }, new AjaxOptions { UpdateTargetId = "rightContent" }, new { id = "subForm" })) { }
<script type="text/javascript">
    initContent()
</script>
